﻿@using LibraryHub.Core.Models.User
@model IndexModel

@{
    ViewBag.Title = "Авторизация Web 0.2";
}
<h1>@ViewBag.Title</h1>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Выберите текущего пользователя</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Users, "Логин") //TODO: proper authorization.
        </div>
        <div class="editor-field">
            @Html.DropDownList("Id", new SelectList(Model.Users, "Id", "Login")) 
        </div>

        <p>
            <input type="submit" value="Применить" />
        </p>
    </fieldset>
}
<p>
   
</p>
